<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <meta charset="utf-8">
    <title>申请入住</title>
    <link href="/theme/hyzhongxin/css/geeteststyle.css" rel="stylesheet" type="text/css">
    <link href="/theme/hyzhongxin/css/personal_data.css" type="text/css" rel="stylesheet">
    <link href="/theme/hyzhongxin/css/newcommon_admin.css" type="text/css" rel="stylesheet">
    <link rel="stylesheet" href="/theme/hyzhongxin/css/style_https.css">
    <link rel="stylesheet" href="/theme/hyzhongxin/css/default.css" />
    <link rel="stylesheet" href="/theme/jedate/skin/jedate.css"/>
    {{--<script src="http://cdn.bootcss.com/jquery/2.2.4/jquery.js" charset="utf-8"></script>--}}
    <script src="/theme/hyzhongxin/js/jquery-1.8.3.min.js"></script>
    <script src="/theme/jedate/jquery.jedate.js"></script>
    <script charset="utf-8" src="/theme/hyzhongxin/js/kindeditor-all-min.js"></script>
    <script charset="utf-8" src="/theme/hyzhongxin/js/zh-cn.js"></script>
    <script src="/js/jquery.ui.widget.js"></script>
    <script src="/js/jquery.iframe-transport.js"></script>
    <script src="/js/jquery.fileupload.js"></script>
    <script src="/js/jquery.xdr-transport.js"></script>
    <script>
        var editor;
        KindEditor.ready(function(K) {
            editor = K.create('textarea[name="content"]', {
                allowFileManager : true
            });
            K('input[name=getHtml]').click(function(e) {
                alert(editor.html());
            });
            K('input[name=isEmpty]').click(function(e) {
                alert(editor.isEmpty());
            });
            K('input[name=getText]').click(function(e) {
                alert(editor.text());
            });
            K('input[name=selectedHtml]').click(function(e) {
                alert(editor.selectedHtml());
            });
            K('input[name=setHtml]').click(function(e) {
                editor.html('<h3>Hello KindEditor</h3>');
            });
            K('input[name=setText]').click(function(e) {
                editor.text('<h3>Hello KindEditor</h3>');
            });
            K('input[name=insertHtml]').click(function(e) {
                editor.insertHtml('<strong>插入HTML</strong>');
            });
            K('input[name=appendHtml]').click(function(e) {
                editor.appendHtml('<strong>添加HTML</strong>');
            });
            K('input[name=clear]').click(function(e) {
                editor.html('');
            });
        });

    </script>
    <script type="text/javascript"src="/theme/hyzhongxin/js/show_ads.js"></script>
    <style type="text/css">
        .bar {
            margin-top:10px;
            height:10px;
            max-width: 300px;
            background: green;
        }
    </style>
</head>
<body>
<style>
    ins{
        display: none !important;
    }
</style>
<!--left_column-->
@include('Home.left_column')
<!--left-column-end-->
<!--top-box-->
@include('Home.top_box')
<!--top-box-->
<div class="left_margin" style="display: none;"> </div>
<div id="user_center_box" style="">
    <div class="user_content_left">
        <div class="user_center">
            <form action="{{route('service.create',Auth::id())}}" method="post"  >
                {{ csrf_field() }}
                <div>
                    <div class="head_samllimg"> <img id="headimg" src="{{$user->portrait}}"></div>
                    <div class="head_title " id="avatar">修改头像</div>
                </div>
                <div class="dropzone"></div>
                <div class="progress2" style="">
                    <div class="bar" style="width: 0%;"></div>
                    <div class="upstatus2" style="margin-top:10px;"></div>
                </div>
                <div class="care_text mt10">支持jpg/gif/png格式的图片，文件必须小于3M</div>
                <div class="mt50 border_text_box">
                    <div class="fl border_left"></div>
                    <div class="fl border_text pb30">基本资料</div>
                    <div class="fl remind ml35">标题标*为必填项，请务必填写真实资料</div>
                    <div class="clearfix"></div>
                </div>
                <div class="mt30">
                    <div class="fl mt10 name_title"> <span class="star">*</span>昵称：</div>
                    <input class="fl name_text pl10" placeholder="昵称" id="nickname" name="nickname" type="text" required>
                    <div class="clearfix"></div>
                </div>
                <div class="mt30">
                    <div class="fl name_title mr5"><span class="star">*</span>性别：</div>
                    <div class="fl sex_box">
                        <div class="fl">  <input value="1" checked="checked" name="sex" type="radio">
                            &nbsp;&nbsp;男 &nbsp;&nbsp;&nbsp;&nbsp;</div>
                        <div class="fl"> <input value="2" name="sex" type="radio">
                            &nbsp;&nbsp;女 </div></div>
                    <div class="clearfix"></div>
                </div>
                <div class="mt30">
                    <div class="fl name_title  mt10"><span class="star">*</span>出生日期：</div>
                    <input id="birthday" readonly placeholder="请选择出生日期" class="fl name_text pl10" name="birthday" type="text" required>
                    <div class="clearfix"></div>
                </div>
                <div class="mt30">
                    <div class="fl name_title  mt10"><span class="star">*</span>所在地：</div>
                    <select id="province" name="province" class="fl mr10 pl10 pr10">
                        <option value="0" selected="selected">选择省份</option>
                    </select>
                    <select id="city" name="city" class="fl mr10 pl10 pr10">
                    </select>
                    <select id="country" name="country" class="fl pl10 pr10">
                    </select>
                    <div class="clearfix"></div>
                </div>
                <div class="mt30">
                    <div class="fl mt10 name_title"><span class="star" style="margin-right:10px;">*</span> 手机号：</div>
                    @if(empty($user->mobile))
                        <div class="fl display_none display_none01" id="edittel"> 未绑定</div>
                    @else
                        <div class="fl user_color"> <?php $phone = $user->mobile;
                            echo substr($phone,0,3).'****'.substr($phone,-4);
                            ?></div>
                    @endif
                    <div class="clearfix"></div>
                </div>
                <div class="mt30">
                    <div class="fl mt10 name_title"> <span class="star">*</span>QQ：</div>
                    <input class="fl name_text pl10" id="qq" name="qq" placeholder="重要联系方式" type="text" value="{{old('qq',$user->qq)}}" required>
                    <div class="clearfix"></div>
                </div>
                <div class="mt50">
                    <div class="fl mt10 name_title"><span class="star">*</span>个性标签：<br>
                        <span class="Optional">（请任意选择两项）</span></div>
                    <div id="character" style="width:540px;" class="fl label">

                        <div class="clearfix"></div>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="mt50">
                    <div class="fl mt10  name_title"><span class="star">*</span>个性签名：</div>
                    <input class="fl input_file" name="short_desc" id="short_desc" placeholder="一句话介绍你自己" type="text" required>
                    <div class="clearfix"></div>
                </div>
                <br>
                <br>
                <div class="mt30" style="margin-bottom: 43px;">
                    <div class="fl mt10">Tips：以下资料为选填内容，资料完整的陪玩导师优先获得首页推荐特权</div>
                    <div class="clearfix"></div>
                </div>
                <div style="width:500px;height:1px;border-bottom:2px dotted #cccccc;"></div>
                <div class="mt30">
                    <div class="fl mt10 name_title"><span class="Optional">（选填）</span>身高(cm)</div>
                    <input class="fl name_text pl10" id="Sheight" name="Sheight" placeholder="身高" type="text">
                    <div class="clearfix"></div>
                </div>
                <div class="mt30">
                    <div class="fl mt10 name_title"> <span class="Optional">（选填）</span>体重(kg)</div>
                    <input class="fl name_text pl10" id="weight" name="weight" placeholder="体重" type="text">
                    <div class="clearfix"></div>
                </div>
                <div class="mt30">
                    <div class="fl mt10 name_title"> <span class="Optional">（选填）</span>职业：</div>
                    <select name="work" id="profession">

                    </select>
                    <div class="clearfix"></div>
                </div>
                <div class="mt30">
                    <div class="fl mt10 name_title"> <span class="Optional">（选填）</span>兴趣爱好：</div>
                    <input class="fl input_file" name="like" id="like" placeholder="字数不超过20个字" type="text">
                    <div class="clearfix"></div>
                </div>
                <div class="mt50">
                    <div class="fl mt10 name_title"><span class="Optional">（选填）</span>魅力部位：<br>
                        <span class="Optional">（不超过三项）</span></div>
                    <div id="glamour" style="width:540px;" class="fl label">

                        <div class="clearfix"></div>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div id="container" style="position: relative;">
                    <div class="mt30">
                        <div class="fl mt10"> <span class="Optional">（选填）</span>上传视频：</div>
                        <input class="fl input_file" name="video" id="video" placeholder="请上传十秒左右的自拍视频，视频“我是点点约玩的某某”" disabled="disabled" type="text">
                        <span class="choose" id="selectfiles" style="position: relative; z-index: 1;">选择</span>
                        <div class="clearfix"></div>
                        <span class="choose_text">注：视频大小不超过10MB，视频格式支持MP4，审核成功后获得真人认证勋章！</span>
                        <div class="clearfix"></div>
                        <div class="progress" style="">
                            <div class="bar" style="width: 0%;"></div>
                            <div class="upstatus" style="margin-top:10px;"></div>
                        </div>
                    </div>

                </div>
                <div class="mt50 border_text_box">
                    <div class="fl border_left"></div>
                    <div class="fl border_text pb30">开通服务</div>
                    <div class="fl remind ml35">标题标*为必填项，请务必填写真实资料（个人最多申请开通七项服务）</div>
                    <div class="clearfix"></div>
                </div>
                <div id="service" class="lol_bigbox" style="height: 500px">

                    <div class="clearfix"></div>
                </div>
                <input id="service_id" value="1" name="service_id" style="display: none">
                <div class="mt30">
                    <div class="fl mt10 mr5 name_title"><span class="star">*</span> 封面照：</div>
                    <div class="fl" style="position: relative;">
                        <input class="name_text pl10" id="title_file" value="上传图片"  style="background-color: #5ecfba;color: #ffffff;height:32px;line-height:32px;" type="button">
                        {{--<input style="display:block;" class="file_01" id="upfile" accept="image/*" type="file" >--}}
                        <div class="diagram diagram1">示例图</div>
                    </div>
                    <div class="randimgsrc"> <img id="title_show" src="/theme/hyzhongxin/Images/breviary.png" style="padding-left: 20px;" class="breviary"></div>
                    <div class="voice_01 mt10 gameExplain" style="float: right;margin-top: -140px;margin-right: 60px;">请上传您的段位截图（需包含个人ID）,并填写<br>
                        线上LOL相关的描述<br>
                        男段位要求：电一钻Ⅰ以上，其他区大师王者；<br>
                        女段位要求：黄金以上</div>
                    <div class="clearfix"></div>
                </div>
                <div class="mt30" style="margin-bottom: 43px;width:100%">
                    <div class="fl mt10" style="width:13%"> <span class="star"></span>服务描述：<br>
                        <div class="diagram diagram2" style="margin-top:10px;margin-right:16px;">示例图</div>
                    </div>
                    <div class="fr" id="ieflag" style="width:85%">
                            <textarea name="content" style="width:800px;height:400px;">KindEditor</textarea>
                    </div>
                    <div class="clearfix"></div>
                </div>
                {{--<div id="dtid">--}}
                    {{--<div class="mt30">--}}
                        {{--<div class="fl mt10 mr5 name_title"> <span class="star">*</span>游戏ID：</div>--}}
                        {{--<input class="fl name_text pl10" placeholder="GameID" name="gameID" id="gameID" type="text">--}}
                        {{--<div class="clearfix"></div>--}}
                    {{--</div>--}}
                    {{--<div class="mt30">--}}
                        {{--<div class="fl mt10 mr5 name_title"> <span class="star">*</span>所在大区：</div>--}}
                        {{--<select id="area_id" name="area_id" class="pl10 pr10">--}}
                            {{--<option value="0" style="color:#999999;" selected="selected">请选择服务器</option>--}}
                            {{--<option value="1">艾欧尼亚</option>--}}
                            {{--<option value="2">比尔吉沃特</option>--}}
                            {{--<option value="3">祖安</option>--}}
                        {{--</select>--}}
                        {{--<div class="clearfix"></div>--}}
                    {{--</div>--}}
                {{--</div>--}}

                <div class="mt30">
                    <div class="fl mt10"> <span class="Optional">（选填）</span>语音介绍：</div>
                    <div class="voice_hover fl ">
                        <div style="position: relative;"><span class="time_box" style="color: black"></span> <img src="/theme/hyzhongxin/Images/voice.png" id="voice_hover" class="fl ml20" style="display:block;"> <img src="/theme/hyzhongxin/Images/voice_hover.png" class=" fl  ml20 voice_hover01" id="cloudBody" data-music=""> <img src="/theme/hyzhongxin/Images/voice_hover02.gif" class=" fl  ml20  voice_hover02">
                            <div class="clearfix"></div>
                        </div>
                    </div>
                    <div class="fl voice mt10 ml10 mr5" id="voice">上传语音
                        {{--<input class="input_top" id="datamp3" name="datamp3" accept="audio/mpeg" type="file">--}}
                    </div>
                    <div class="fl voice_01 mt10" id="voice_box">（支持上传MP3格式录音，时长不可超过60秒）</div>
                    <div class="clearfix"></div>
                    <div class="progress1" style="">
                        <div class="bar" style="width: 0%;"></div>
                        <div class="upstatus1" style="margin-top:10px;"></div>
                    </div>
                </div>
                <!-- <input type="submit" class="sure_box" value="申请导师" style="margin-left: 238px" id="postfiles"> -->
            <button type="submit" class="sure_box1" value="申请导师" style="margin-left: 238px;">申请导师</button>
            </form>
{{--视频上传--}}
            <div style="margin-top:10px; display: none">
                <form action="" name="" enctype="multipart/form-data">
                    <input type="file" name="files" class="upinput" param1="xxx"/>
                </form>
            </div>
{{--音频上传--}}
            <div style="margin-top:10px; display: none">
                <form action="" name="" enctype="multipart/form-data">
                    <input type="file" name="files" class="voiceup" param1="xxx"/>
                </form>
            </div>
            {{--头像上传--}}
            <div style="margin-top:10px; display: none">
                <form action="" name="" enctype="multipart/form-data">
                    <input type="file" name="files" class="avatarup" param1="xxx"/>
                </form>
            </div>
            {{--服务图上传--}}
            <div style="margin-top:10px; display: none">
                <form action="" name="" enctype="multipart/form-data">
                    <input type="file" name="files" class="titleup" param1="xxx"/>
                </form>
            </div>
        </div>
    </div>
</div>
<style type="text/css">
    #user_center_box{margin-top:0;}

    .content_center {
        background-color: #fff;
        margin: 0 auto;
        width: 52%;
        padding: 5% 10%;
        font-family: '微软雅黑';
    }
</style>
<script>
    $(document).ready(function () {

        $('.head_title').click(function () {
            $('#ori_avatar').click();
        })

            $("#birthday").jeDate({
                format:"YYYY-MM-DD",
                isTime:false,
                minDate:"1800-01-01 00:00:00"
            });
        //上传视频文件
        $('.choose').click(function () {
            $('.upinput').click()
        })
        $(".upinput").fileupload({
            url:"{{route('videoupload',Auth::id())}}",//文件上传地址，当然也可以直接写在input的data-url属性内
            dataType: "json", //如果不指定json类型，则传来的json字符串就需要解析jQuery.parseJSON(data.result);
            autoUpload:true,
            done:function(e,data){
                //done方法就是上传完毕的回调函数，其他回调函数可以自行查看api
                //注意data要和jquery的ajax的data参数区分，这个对象包含了整个请求信息
                //返回的数据在data.result中，这里dataType中设置的返回的数据类型为json
                if(data.result.sta) {
                    // 上传成功：
                    $('#video').attr('placeholder',data.result.name)
                    $(".upstatus").html(data.result.msg);
                    $(".preview").html("<embed src="+data.result.previewSrc+
                        " allowscriptaccess='always' allowfullscreen='true' wmode='opaque'"+
                        " width='480' height='400'></embed>");
                } else {
                    // 上传失败：
                    $(".progress .bar").css("width", "0%");
                    $(".upstatus").html("<span style='color:red;'>"+data.result.msg+"</span>");
                }

            },
            progress: function (e, data) {//上传进度
                var progress = parseInt(data.loaded / data.total * 100, 10);
                $(".progress .bar").css("width", progress + "%");
                $(".upstatus").html("正在上传...");
            },
            headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
        });

        //上传音频文件
        $('#voice').click(function () {
            $('.voiceup').click()
        })
        $(".voiceup").fileupload({
            url:"{{route('voiceupload',Auth::id())}}",
            dataType: "json",
            autoUpload:true,
            done:function(e,data){
                if(data.result.sta) {
                    $('#voice_box').html(data.result.name)
                    $(".upstatus1").html(data.result.msg);
                    $(".preview1").html("<embed src="+data.result.previewSrc+
                        " allowscriptaccess='always' allowfullscreen='true' wmode='opaque'"+
                        " width='480' height='400'></embed>");
                } else {
                    $(".progress1 .bar").css("width", "0%");
                    $(".upstatus1").html("<span style='color:red;'>"+data.result.msg+"</span>");
                }

            },
            progress: function (e, data) {
                var progress = parseInt(data.loaded / data.total * 100, 10);
                $(".progress1 .bar").css("width", progress + "%");
                $(".upstatus1").html("正在上传...");
            },
            headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
        });

        //获取城市
        var a = {};
        a.id = 0;
        $.ajax({
            type: 'POST',
            headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
            url:'{{route('citylist')}}',
            data:a,
            success: function (data) {
                var html = '<option selected="selected">选择省份</option>';
                for (var i=0;i<data.length;i++){
                    html += "<option value=\""+data[i].name+"\">"+data[i].name+"</option>"
                }
                $('#province').html(html) ;
            }
        });
        //获取个性标签 职业 魅力
        $.ajax({
            type:'POST',
            headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
            url:'{{route('getdata')}}',
            success: function (data) {
                var html1 = '';
                for (var i=0;i<data['character'].length;i++){
                    html1 += "<div class=\"mt10 fl\" style=\"margin-right:7%;\">\n" +
                        "                            <input name=\"character[]\" class=\"TagCheckBox\" value=\""+data['character'][i].name+"\" type=\"checkbox\">\n" +
                        "                            <span class=\"fl\">"+data['character'][i].name+"</span>\n" +
                        "                            <div class=\"clearfix\"></div>\n" +
                        "                        </div>";
                }
                $('#character').html(html1);
                var html2 = '';
                for (var j = 0; j < data['glamour'].length; j++) {
                    html2 += "<div class=\"mt10 fl mr40\">\n" +
                        "                            <input name=\"glamour[]\" class=\"organ\" value=\"" + data['glamour'][j].name + "\" type=\"checkbox\">\n" +
                        "                            " + data['glamour'][j].name + "</div>"
                        "                            <div class=\"clearfix\"></div>\n" +
                        "                        </div>";
                };
                $('#glamour').html(html2);
                var html3 = "<option value=\"\" selected=\"selected\">请选择</option>\n";
                for (var k=0;k<data['profession'].length;k++){
                    html3 += "<option value=\""+data['profession'][k].name+"\">"+data['profession'][k].name+"</option>"
                };
                $('#profession').html(html3);
            }
        });
        //获取服务列表
        $.ajax({
            type:'POST',
            headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
            url:'{{route('getservice')}}',
            success:function (data) {
                var html = "<div class=\"fl lol_box\" style='margin-top: 10px'>\n" +
                    "                        <div class=\"lol_img\" seid='"+data[0].id+"' flag=\"0\"> " +
                    "<img src=\""+data[0].img+"\" class=\"status_lolhover\" style=\"width:80px;height:80px;display:block;\"> " +
                    "<img src=\""+data[0].unimg+"\" style=\"width:80px;height:80px;display:none;\" class=\"status_lol\"> </div>\n" +
                    "                        <div class=\"lol_title\">"+data[0].name+"</div>\n" +
                    "                        <div class=\"lol_status\">（未开通）</div>\n" +
                    "                    </div>";
                for (var i=1;i<data.length;i++){
                    html += "<div class=\"fl lol_box\" style='margin-top: 10px'>\n" +
                        "                        <div class=\"lol_img\" seid= '"+data[i].id+"' flag=\"0\"> " +
                        "<img src=\""+data[i].img+"\" class=\"status_lolhover\" style=\"width:80px;height:80px;display:none;\">" +
                        " <img src=\""+data[i].unimg+"\" style=\"width:80px;height:80px;display:block;\" class=\"status_lol\"> </div>\n" +
                        "                        <div class=\"lol_title\">"+data[i].name+"</div>\n" +
                        "                        <div class=\"lol_status\">（未开通）</div>\n" +
                        "                    </div>";
                }
                $('#service').html(html);
                for (var i=1;i<=data.length;i++){
                    choice(i,data[i-1].demand);
                }
            }
        });

        //获取城市
        $('#province').bind('change',function () {
            a.id = $('#province').val();
            $.ajax({
                type: 'POST',
                headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
                url:'{{route('citylist')}}',
                data:a,
                success: function (data) {
                    var html = '<option selected="selected">选择城市</option>';
                    for (var i=0;i<data.length;i++){
                        html += "<option value=\""+data[i].name+"\">"+data[i].name+"</option>"
                    }
                    $('#city').html(html) ;
                }
            });
        });
        $('#city').bind('change',function () {
            a.id = $('#city').val();
            $.ajax({
                type: 'POST',
                headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
                url:'{{route('citylist')}}',
                data:a,
                success: function (data) {
                    var html = '<option selected="selected">选择地区</option>';
                    for (var i=0;i<data.length;i++){
                        html += "<option value=\""+data[i].name+"\">"+data[i].name+"</option>"
                    }
                    $('#country').html(html) ;
                }
            });
        });
        //头像上传
        $('#avatar').click(function () {
            $(".avatarup").click();
        });
            $(".avatarup").fileupload({
                url:"{{route('avatarupload',Auth::id())}}",
                dataType: "json",
                autoUpload:true,
                done:function(e,data){
                    if(data.result.sta) {
                        console.log(data);
                        $(".upstatus2").html(data.result.msg);
                        $(".preview2").html("<embed src="+data.result.previewSrc+
                            " allowscriptaccess='always' allowfullscreen='true' wmode='opaque'"+
                            " width='480' height='400'></embed>");
                        $('#headimg').attr('src',data.result.name)
                    } else {
                        $(".progress2 .bar").css("width", "0%");
                        $(".upstatus2").html("<span style='color:red;'>"+data.result.msg+"</span>");
                    }

                },
                progress: function (e, data) {
                    var progress = parseInt(data.loaded / data.total * 100, 10);
                    $(".progress2 .bar").css("width", progress + "%");
                    $(".upstatus2").html("正在上传...");
                },
                headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
            });
            //服务图上传
        $('#title_file').click(function () {
            $(".titleup").click();
        });
        $(".titleup").fileupload({
            url:"{{route('titleupload',Auth::id())}}",
            dataType: "json",
            autoUpload:true,
            done:function(e,data){
                if(data.result.sta) {
                    console.log(data);
                    $('#title_show').attr('src',data.result.name)
                } else {
                    alert('上传失败');
                }

            },
            headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
        });
    });

    function choice(id,html){
        $('.lol_box').find('div[seid='+id+']').click(function () {
            $('.lol_box').find('img[class=status_lolhover]').css('display','none');
            $('.lol_box').find('img[class=status_lol]').css('display','block');
            $('.lol_box').find('div[seid='+id+']').find('img[class=status_lolhover]').css('display','block');
            $('.lol_box').find('div[seid='+id+']').find('img[class=status_lol]').css('display','none');
            $('.gameExplain').html(html);
            $('#service_id').val(id)
        });
    }
    // function serializeObject(a){
    //     var o = {};
    //     $.each(a, function() {
    //         if (o[this.name] !== undefined) {
    //             if (!o[this.name].push) {
    //                 o[this.name] = [o[this.name]];
    //             }
    //             o[this.name].push(this.value || '');
    //         } else {
    //             o[this.name] = this.value || '';
    //         }
    //     });
    //     return o;
    // };

</script>
</body>
</html>